<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Freetype OpenGL: vertex-attribute.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="style.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="content"><!-- do not remove this div! -->

<div id="top"><!-- do not remove this div! -->

  
  <div id="titlearea">
    
    <div id="projectname">Freetype OpenGL</div>
    
    
    <div id="projectbrief">A high quality OpenGL text rendering engine for C</div>
    
  </div>
  

<!--

<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Freetype OpenGL
   &#160;<span id="projectnumber">0.1</span>
   </div>
   <div id="projectbrief">A high quality OpenGL text rendering engine for C</div>
  </td>
  
  
  
   
  
 </tr>
 </tbody>
</table>
</div>
-->


<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript" src="dynsections.js"></script>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">vertex-attribute.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="vertex-attribute_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* ============================================================================</span>
<a name="l00002"></a>00002 <span class="comment"> * Freetype GL - A C OpenGL Freetype engine</span>
<a name="l00003"></a>00003 <span class="comment"> * Platform:    Any</span>
<a name="l00004"></a>00004 <span class="comment"> * WWW:         http://code.google.com/p/freetype-gl/</span>
<a name="l00005"></a>00005 <span class="comment"> * ----------------------------------------------------------------------------</span>
<a name="l00006"></a>00006 <span class="comment"> * Copyright 2011,2012 Nicolas P. Rougier. All rights reserved.</span>
<a name="l00007"></a>00007 <span class="comment"> *</span>
<a name="l00008"></a>00008 <span class="comment"> * Redistribution and use in source and binary forms, with or without</span>
<a name="l00009"></a>00009 <span class="comment"> * modification, are permitted provided that the following conditions are met:</span>
<a name="l00010"></a>00010 <span class="comment"> *</span>
<a name="l00011"></a>00011 <span class="comment"> *  1. Redistributions of source code must retain the above copyright notice,</span>
<a name="l00012"></a>00012 <span class="comment"> *     this list of conditions and the following disclaimer.</span>
<a name="l00013"></a>00013 <span class="comment"> *</span>
<a name="l00014"></a>00014 <span class="comment"> *  2. Redistributions in binary form must reproduce the above copyright</span>
<a name="l00015"></a>00015 <span class="comment"> *     notice, this list of conditions and the following disclaimer in the</span>
<a name="l00016"></a>00016 <span class="comment"> *     documentation and/or other materials provided with the distribution.</span>
<a name="l00017"></a>00017 <span class="comment"> *</span>
<a name="l00018"></a>00018 <span class="comment"> * THIS SOFTWARE IS PROVIDED BY NICOLAS P. ROUGIER &#39;&#39;AS IS&#39;&#39; AND ANY EXPRESS OR</span>
<a name="l00019"></a>00019 <span class="comment"> * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF</span>
<a name="l00020"></a>00020 <span class="comment"> * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO</span>
<a name="l00021"></a>00021 <span class="comment"> * EVENT SHALL NICOLAS P. ROUGIER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,</span>
<a name="l00022"></a>00022 <span class="comment"> * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES</span>
<a name="l00023"></a>00023 <span class="comment"> * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;</span>
<a name="l00024"></a>00024 <span class="comment"> * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND</span>
<a name="l00025"></a>00025 <span class="comment"> * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span>
<a name="l00026"></a>00026 <span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF</span>
<a name="l00027"></a>00027 <span class="comment"> * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span>
<a name="l00028"></a>00028 <span class="comment"> *</span>
<a name="l00029"></a>00029 <span class="comment"> * The views and conclusions contained in the software and documentation are</span>
<a name="l00030"></a>00030 <span class="comment"> * those of the authors and should not be interpreted as representing official</span>
<a name="l00031"></a>00031 <span class="comment"> * policies, either expressed or implied, of Nicolas P. Rougier.</span>
<a name="l00032"></a>00032 <span class="comment"> * ============================================================================</span>
<a name="l00033"></a>00033 <span class="comment"> */</span>
<a name="l00034"></a>00034 <span class="preprocessor">#ifndef __VERTEX_ATTRIBUTE_H__</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span><span class="preprocessor">#define __VERTEX_ATTRIBUTE_H__</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span>
<a name="l00037"></a>00037 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00039"></a>00039 <span class="preprocessor">#endif</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span>
<a name="l00041"></a>00041 <span class="preprocessor">#include &quot;opengl.h&quot;</span>
<a name="l00042"></a>00042 <span class="preprocessor">#include &quot;<a class="code" href="vector_8h.html">vector.h</a>&quot;</span>
<a name="l00043"></a>00043 
<a name="l00044"></a>00044 
<a name="l00193"></a><a class="code" href="group__vertex-attribut.html#ga9555c2d7b2932a0f83629c11fd863c7a">00193</a> <span class="preprocessor">#define MAX_VERTEX_ATTRIBUTE 16</span>
<a name="l00194"></a>00194 <span class="preprocessor"></span>
<a name="l00195"></a>00195 
<a name="l00199"></a><a class="code" href="structvertex__attribute__t.html">00199</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>
<a name="l00200"></a>00200 {
<a name="l00204"></a><a class="code" href="structvertex__attribute__t.html#a318b0b4aee0ca6cb71ad93c23c91a9db">00204</a>     GLenum <a class="code" href="structvertex__attribute__t.html#a318b0b4aee0ca6cb71ad93c23c91a9db" title="a client-side capability.">target</a>;
<a name="l00205"></a>00205 
<a name="l00209"></a><a class="code" href="structvertex__attribute__t.html#a30176916b1c285c10e4b2abe7c14bd9c">00209</a>     GLchar <a class="code" href="structvertex__attribute__t.html#a30176916b1c285c10e4b2abe7c14bd9c" title="a translated client-side capability.">ctarget</a>;
<a name="l00210"></a>00210 
<a name="l00214"></a><a class="code" href="structvertex__attribute__t.html#a2e80d9208b165369bee84d5f6362a4d7">00214</a>     GLuint <a class="code" href="structvertex__attribute__t.html#a2e80d9208b165369bee84d5f6362a4d7" title="index of the generic vertex attribute to be modified.">index</a>;
<a name="l00215"></a>00215 
<a name="l00221"></a><a class="code" href="structvertex__attribute__t.html#a03531e6f74bbc2cada71f18e8690aba6">00221</a>     GLint <a class="code" href="structvertex__attribute__t.html#a03531e6f74bbc2cada71f18e8690aba6" title="Number of components per generic vertex attribute.">size</a>;
<a name="l00222"></a>00222 
<a name="l00230"></a><a class="code" href="structvertex__attribute__t.html#a12aeee805954642397c2370111a097b1">00230</a>     GLenum <a class="code" href="structvertex__attribute__t.html#a12aeee805954642397c2370111a097b1" title="data type of each component in the array.">type</a>;
<a name="l00231"></a>00231 
<a name="l00237"></a><a class="code" href="structvertex__attribute__t.html#a96f720d68a7dd2e3e9565854417f815f">00237</a>     GLboolean <a class="code" href="structvertex__attribute__t.html#a96f720d68a7dd2e3e9565854417f815f" title="whether fixed-point data values should be normalized (GL_TRUE) or converted directly as fixed-point v...">normalized</a>;
<a name="l00238"></a>00238 
<a name="l00245"></a><a class="code" href="structvertex__attribute__t.html#ae42c5150a9ad1601d9d5638e39dfd9ac">00245</a>     GLsizei <a class="code" href="structvertex__attribute__t.html#ae42c5150a9ad1601d9d5638e39dfd9ac" title="byte offset between consecutive generic vertex attributes.">stride</a>;
<a name="l00246"></a>00246 
<a name="l00251"></a><a class="code" href="structvertex__attribute__t.html#a825e3b23307c1f2761fd480a8dd36e5e">00251</a>     GLvoid * <a class="code" href="structvertex__attribute__t.html#a825e3b23307c1f2761fd480a8dd36e5e" title="pointer to the first component of the first attribute element in the array.">pointer</a>;
<a name="l00252"></a>00252 
<a name="l00256"></a><a class="code" href="structvertex__attribute__t.html#ad14e3ea6e5949c4c631001b152fa039c">00256</a>     void ( * enable )(<span class="keywordtype">void</span> *);
<a name="l00257"></a>00257 
<a name="l00258"></a>00258 } <a class="code" href="structvertex__attribute__t.html" title="Generic vertex attribute.">vertex_attribute_t</a>;
<a name="l00259"></a>00259 
<a name="l00260"></a>00260 
<a name="l00261"></a>00261 
<a name="l00279"></a>00279 <a class="code" href="structvertex__attribute__t.html" title="Generic vertex attribute.">vertex_attribute_t</a> *
<a name="l00280"></a>00280 vertex_attribute_new( GLenum target,
<a name="l00281"></a>00281                       GLuint index,
<a name="l00282"></a>00282                       GLint size,
<a name="l00283"></a>00283                       GLenum type,
<a name="l00284"></a>00284                       GLboolean normalized,
<a name="l00285"></a>00285                       GLsizei stride,
<a name="l00286"></a>00286                       GLvoid *pointer );
<a name="l00287"></a>00287 
<a name="l00288"></a>00288 
<a name="l00289"></a>00289 
<a name="l00296"></a>00296 <span class="keywordtype">void</span>
<a name="l00297"></a>00297 <a class="code" href="group__vertex-attribut.html#gae82d3ebbe275f575db72a23848a56e8d" title="Delete a vertex attribute.">vertex_attribute_delete</a>( <a class="code" href="structvertex__attribute__t.html" title="Generic vertex attribute.">vertex_attribute_t</a> * <span class="keyword">self</span> );
<a name="l00298"></a>00298 
<a name="l00299"></a>00299 
<a name="l00308"></a>00308   <a class="code" href="structvertex__attribute__t.html" title="Generic vertex attribute.">vertex_attribute_t</a> *
<a name="l00309"></a>00309   vertex_attribute_parse( <span class="keywordtype">char</span> *format );
<a name="l00310"></a>00310 
<a name="l00311"></a>00311 
<a name="l00319"></a>00319   <span class="keywordtype">void</span>
<a name="l00320"></a>00320   vertex_attribute_position_enable( <a class="code" href="structvertex__attribute__t.html" title="Generic vertex attribute.">vertex_attribute_t</a> *attr );
<a name="l00321"></a>00321 
<a name="l00322"></a>00322 
<a name="l00330"></a>00330   <span class="keywordtype">void</span>
<a name="l00331"></a>00331   vertex_attribute_normal_enable( <a class="code" href="structvertex__attribute__t.html" title="Generic vertex attribute.">vertex_attribute_t</a> *attr );
<a name="l00332"></a>00332 
<a name="l00333"></a>00333 
<a name="l00341"></a>00341   <span class="keywordtype">void</span>
<a name="l00342"></a>00342   vertex_attribute_color_enable( <a class="code" href="structvertex__attribute__t.html" title="Generic vertex attribute.">vertex_attribute_t</a> *attr );
<a name="l00343"></a>00343 
<a name="l00344"></a>00344 
<a name="l00352"></a>00352   <span class="keywordtype">void</span>
<a name="l00353"></a>00353   vertex_attribute_tex_coord_enable( <a class="code" href="structvertex__attribute__t.html" title="Generic vertex attribute.">vertex_attribute_t</a> *attr );
<a name="l00354"></a>00354 
<a name="l00355"></a>00355 
<a name="l00363"></a>00363   <span class="keywordtype">void</span>
<a name="l00364"></a>00364   vertex_attribute_fog_coord_enable( <a class="code" href="structvertex__attribute__t.html" title="Generic vertex attribute.">vertex_attribute_t</a> *attr );
<a name="l00365"></a>00365 
<a name="l00366"></a>00366 
<a name="l00374"></a>00374   <span class="keywordtype">void</span>
<a name="l00375"></a>00375   vertex_attribute_edge_flag_enable( <a class="code" href="structvertex__attribute__t.html" title="Generic vertex attribute.">vertex_attribute_t</a> *attr );
<a name="l00376"></a>00376 
<a name="l00377"></a>00377 
<a name="l00385"></a>00385   <span class="keywordtype">void</span>
<a name="l00386"></a>00386   vertex_attribute_secondary_color_enable( <a class="code" href="structvertex__attribute__t.html" title="Generic vertex attribute.">vertex_attribute_t</a> *attr );
<a name="l00387"></a>00387 
<a name="l00388"></a>00388 
<a name="l00396"></a>00396   <span class="keywordtype">void</span>
<a name="l00397"></a>00397   vertex_attribute_generic_attribute_enable( <a class="code" href="structvertex__attribute__t.html" title="Generic vertex attribute.">vertex_attribute_t</a> *attr );
<a name="l00398"></a>00398 
<a name="l00399"></a>00399 
<a name="l00408"></a>00408   GLenum
<a name="l00409"></a>00409   GL_TYPE( <span class="keywordtype">char</span> ctype );
<a name="l00410"></a>00410 
<a name="l00411"></a>00411 
<a name="l00420"></a>00420   GLenum
<a name="l00421"></a>00421   GL_VERTEX_ATTRIBUTE_TARGET( <span class="keywordtype">char</span> ctarget );
<a name="l00422"></a>00422 
<a name="l00423"></a>00423 
<a name="l00432"></a>00432   GLuint
<a name="l00433"></a>00433   GL_TYPE_SIZE( GLenum gtype );
<a name="l00434"></a>00434 
<a name="l00435"></a>00435 
<a name="l00444"></a>00444   <span class="keyword">const</span> <span class="keywordtype">char</span> *
<a name="l00445"></a>00445   GL_TYPE_STRING( GLenum gtype );
<a name="l00446"></a>00446 
<a name="l00449"></a>00449 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00450"></a>00450 <span class="preprocessor"></span>}
<a name="l00451"></a>00451 <span class="preprocessor">#endif</span>
<a name="l00452"></a>00452 <span class="preprocessor"></span>
<a name="l00453"></a>00453 <span class="preprocessor">#endif </span><span class="comment">/* __VERTEX_ATTRIBUTE_H__ */</span>
</pre></div></div><!-- contents -->
</div>
</body>
</html>
